<%--
  Created by IntelliJ IDEA.
  User: ss.xju
  Date: 2020-07-25
  Time: 16:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>获取用户数据成功页面</title>
</head>
<body>

    <table>
        <tr>
            <th>ID</th>
            <th>NAME</th>
            <th>PASSWOD</th>
            <th>操作</th>
        </tr>
        <C:forEach var="user" items="${userList}">
            <tr>
                <td>${user.id}</td>
                <td>${user.name}</td>
                <td>${user.password}</td>
                <td><a href="/user/delete?id=${user.id}">删除</a></td>
            </tr>
        </C:forEach>
    </table>


    <form action="/user/update">
        <input type="text" placeholder="请输入ID" name="id">
        <input type="text" placeholder="请输入姓名" name="name">
        <input type="text" placeholder="请输入密码" name="password">
        <input type="submit">
    </form>

</body>
</html>
